<?php
class ui_a_reader extends ui {
	/**
	 * Enter description here...
	 *
	 * @param unknown_type $S
	 * @param unknown_type $param = array (
	 * 		id
	 * 		flag
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_admin_article = new data_admin_article();
		$article = $data_admin_article->one($param['id'], 'save');
		
		$S->assign('article', $article);
		$S->assign('reader_type', 'save');
		$S->assign('flag', $param['flag']);
	}
}
?>